package top.hkyzf.study.datastructure.linkedlist;

/**
 * @author 朱峰
 * @date 2020-12-21 11:29
 */
public class HeroNode {
    public int num;
    public String name;
    public String nickName;
    public HeroNode next;

    // 双向链表使用
    public HeroNode pre;

    public HeroNode(int num, String name, String nickName) {
        this.num = num;
        this.name = name;
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return "HeroNode{" +
                "num=" + num +
                ", name='" + name + '\'' +
                ", nickName='" + nickName + '\'' +
                '}';
    }

}

